#include "component_entity_2d.h"
/*--------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------*/
VOID COMPONENT_ENTITY_2D::Update( const TIMER & time_step )
{
	Position += Direction * Velocity * time_step.GetSecondCount();
	GraphicObject.SetPosition( Position );
	GraphicObject.SetAngle( Angle );

	GraphicObject.Update( time_step );
}
/*--------------------------------------------------------------------------------*/
VOID COMPONENT_ENTITY_2D::Render()
{
	GraphicObject.Render();
}
/*--------------------------------------------------------------------------------*/
VOID COMPONENT_ENTITY_2D::PlayAnimation( const GRAPHIC_ANIMATION_DATA & animation )
{
	GraphicObject.SetAnimation( animation );
}
/*--------------------------------------------------------------------------------*/
